// 错误页面路由
import ErrorPage from '@/pages/errorpage'
import Error404Page from '@/pages/errorpage/404'
import Error401Page from '@/pages/errorpage/401'
const ErrorRoutes = {
  path: '*',
  component: ErrorPage,
  redirect: 'error/404',
  meta: { //添加一个路由元信息，标记
    requiresAuth: true
  },
  children: [
    {
      path: 'error/404',
      component: Error404Page
    },
    {
      path: 'error/401',
      component: Error401Page
    }
  ]
}

export default ErrorRoutes
